package com.apkfuns.jsbridge;

import com.apkfuns.jsbridge.module.*;
import org.junit.Test;

import java.util.List;

import static org.junit.Assert.assertEquals;

public class JBUtilsTest {

    @Test
    public void testToJsObject(){
        Integer one  = new Integer(1);
        String ontString = JBUtils.toJsObject(one);
        assertEquals("1", ontString);
    }

    @Test
    public void testModuleSplit(){
        String one  ="NativeModule.ServiceModule.MultiLayerModule";
        List ontString = JBUtils.moduleSplit(one);
        assertEquals(3, ontString.size());
    }
}
